package com.example.module_service.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_service.R
import com.example.module_service.entity.CarStopEntityItem

class CarStopAdapter: BaseQuickAdapter<CarStopEntityItem, BaseViewHolder>(R.layout.item_car_stop) {
    override fun convert(holder: BaseViewHolder, item: CarStopEntityItem){
        holder.getView<TextView>(R.id.tv_carCode).text="车牌号: ${item.plateNumber}"
        holder.getView<TextView>(R.id.tv_carTime1).text="${item.entryTime}"
        holder.getView<TextView>(R.id.tv_carTime2).text="${item.parkingDuration}分钟"
        holder.getView<TextView>(R.id.tv_carMoney).text="${item.paymentAmount}元"
    }

}